package org.lql.shop.cloud.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author: lql
 * @date: 2022/7/2 00:44
 * @description: 订单表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "shop_order")
public class ShopOrderEntity {

    @TableId(value = "order_id", type = IdType.AUTO)
    private Long orderId;

    @TableField(value = "order_code")
    private String orderCode;

    @Version
    private Integer version;
}
